package org.boot.fast.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class FileInfoDO {

    private Long id;

    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件大小")
    private Long fileSize;

    @Schema(description = "上传时间")
    private LocalDateTime uploadTime;

    @Schema(description = "上传人")
    private String uploadUser;

    @Schema(description = "文件md5")
    private String md5;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "文件类型")
    private String type;

    @Schema(description = "文件key")
    private String fileKey;


    public FileInfoDO() {
    }

    public FileInfoDO(String fileName, String filePath, Long fileSize, String type, String fileKey) {
        this.fileName = fileName;
        this.filePath = filePath;
        this.fileSize = fileSize;
        this.type = type;
        this.fileKey = fileKey;
        this.status = 0;
    }
}